package com.woniu.aimd;

import com.woniu.aimd.config.ai.tools.WebSearchTool;
import com.woniu.aimd.service.impl.ChatService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.tool.ToolCallback;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.function.FunctionToolCallback;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestClient;

@MapperScan(basePackages = "com.woniu.aimd.mapper")
@EnableCaching
@EnableScheduling
@SpringBootApplication
public class AimdApplication {

    public static void main(String[] args) {
        SpringApplication.run(AimdApplication.class, args);
    }
}
